import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '收款标题',
    align: "center", resizable: true,
    dataIndex: 'paymentTitle'
  },
/*
  {
    title: '收款状态',
    align: "center", resizable: true,
    dataIndex: 'paymentStatus'
  },
*/

  {
    title: '项目',
    align: "center", resizable: true,
    dataIndex: 'projectId_dictText'
  },
  {
    title: '收款日期',
    align: "center", resizable: true,
    dataIndex: 'paymentDate'
  },
  {
    title: '收款金额',
    align: "center", resizable: true,
    dataIndex: 'paymentAmount'
  },
  {
    title: '关联开票登记',
    align: "center", resizable: true,
    dataIndex: 'invoiceApplyId'
  },
  {
    title: '收款方式',
    align: "center", resizable: true,
    dataIndex: 'paymentMethod_dictText'
  },
  {
    title: '银行名称',
    align: "center", resizable: true,
    dataIndex: 'bankName_dictText'
  },
  {
    title: '支行信息',
    align: "center", resizable: true,
    dataIndex: 'bankBranch'
  },
];

// 高级查询数据
export const superQuerySchema = {
  paymentStatus: {title: '收款状态',order: 0,view: 'text', type: 'string',},
  projectId: {title: '项目',order: 1,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  paymentDate: {title: '收款日期',order: 2,view: 'datetime', type: 'string',},
  paymentAmount: {title: '收款金额',order: 3,view: 'number', type: 'number',},
  paymentMethod: {title: '收款方式',order: 5,view: 'list', type: 'string',dictCode: 'payment_methods',},
  bankName: {title: '银行名称',order: 6,view: 'list', type: 'string',dictCode: 'bank_name',},
  bankBranch: {title: '支行信息',order: 7,view: 'text', type: 'string',},
  accountHolderName: {title: '开户人名称',order: 9,view: 'text', type: 'string',},
};
